package edu.tgc.entity.code;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

@MappedSuperclass
public abstract class TbCode implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 5469169186230228382L;
    protected Integer id;
    protected String name;
    protected Integer sort;

    public TbCode() {
        super();
    }

    public TbCode(Integer id) {
        super();
        this.id = id;
    }

    public TbCode(Integer id, String name, Integer sort) {
        super();
        this.id = id;
        this.name = name;
        this.sort = sort;
    }

    @Id
    public Integer getId() {
        return this.id;
    }

    @Column(length = 30)
    public String getName() {
        return this.name;
    }

    public Integer getSort() {
        return this.sort;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

}
